package tt.dz.service.imp.middleware.vo;

public class ChargerReplyMsgHeader extends ChargerMsgHeader
{

	@Override
	public int receiveType()
	{
		return ChargerMsgHeader.Reply_By_Charger;
	}

	@MessageField(order = 1, length = 1)
	private String startupCode;
	@MessageField(order = 2, length = 2)
	private String textLength;
	@MessageField(order = 3, length = 1)
	private String responseType;
	@MessageField(order = 4, length = 2)
	private String operator;
	@MessageField(order = 5, length = 8)
	private String chargerId;
	@MessageField(order = 6, length = 1)
	private String chargerTypePortNo;
	@MessageField(order = 7, length = 3)
	private String responseCode;
	@MessageField(order = 8, length = 1)
	private String encryptType;
	@MessageField(order = 9, length = 9)
	private String serverSerialNo;
	@MessageField(order = 10, length = 9)
	private String chargerSerialNo;

	private String chargerType;
	private String portNo;

	/*
	* 启动字符	BCD码	1
*报文长度	BIN码	2
帧类型	BCD码	1
运营商	BCD码	2
充电设备地址	BCD码	8
桩类型	BCD码	1   高4位：0：交流桩   1：直流桩  F：其它 低4位：当前使用的充电口        0：电桩的所以充电口 1: 表示第一个充电口；2：表示第二个充电口；
响应码	BCD码	3
加密方式	BCD码	1
原服务器请求流水号	BCD码	9
电桩流水号	BCD码	9
*/

	public String getStartupCode()
	{
		return startupCode;
	}

	public void setStartupCode(String startupCode)
	{
		this.startupCode = startupCode;
	}

	public String getTextLength()
	{
		return textLength;
	}

	public void setTextLength(String textLength)
	{
		this.textLength = textLength;
	}

	public String getResponseType()
	{
		return responseType;
	}

	public void setResponseType(String responseType)
	{
		this.responseType = responseType;
	}

	public String getOperator()
	{
		return operator;
	}

	public void setOperator(String operator)
	{
		this.operator = operator;
	}

	public String getChargerId()
	{
		return chargerId;
	}

	public void setChargerId(String chargerId)
	{
		this.chargerId = chargerId;
	}

	public String getEncryptType()
	{
		return encryptType;
	}

	public void setEncryptType(String encryptType)
	{
		this.encryptType = encryptType;
	}

	public String getChargerSerialNo()
	{
		return chargerSerialNo;
	}

	public void setChargerSerialNo(String chargerSerialNo)
	{
		this.chargerSerialNo = chargerSerialNo;
	}

	public String getResponseCode()
	{
		return responseCode;
	}

	public void setResponseCode(String responseCode)
	{
		this.responseCode = responseCode;
	}

	public String getServerSerialNo()
	{
		return serverSerialNo;
	}

	public void setServerSerialNo(String serverSerialNo)
	{
		this.serverSerialNo = serverSerialNo;
	}

	public void setChargerTypePortNo(String chargerTypePortNo)
	{
		this.chargerTypePortNo = chargerTypePortNo;
		this.chargerType = chargerTypePortNo.substring(0, 1);
		this.portNo = chargerTypePortNo.substring(1);
	}

	public String getChargerType()
	{
		return chargerType;
	}

	public String getPortNo()
	{
		return portNo;
	}
}
